package com.ndp.fb.model.fbagent.result.entrustaccount;

import com.ndp.fb.model.fbagent.result.AbstractFacebookResult;
import com.restfb.Facebook;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * Created by mikey.zhaopeng on 2015/7/3.
 */
@Setter
@Getter
@NoArgsConstructor
public class TokenResult extends AbstractFacebookResult {

    @Facebook("user_id")
    private String userId;
    @Facebook("app_id")
    private String appId;
    @Facebook("application")
    private String application;
    @Facebook("expires_at")
    private String expiresAt;
    @Facebook("is_valid")
    private boolean isValid;
    @Facebook("error")
    private String error;

    public void setValid(boolean valid) {
        isValid = valid;
    }
    public void setIsValid(boolean valid) {
        isValid = valid;
    }
}
